package com.ljd.client;

import com.ljd.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component // 注解防止，在其他位置注入CodClient时idea报错
@FeignClient(name = "service-vod", fallback = VodFileDegradeFeignClient.class)

public interface VodClient {

    @DeleteMapping("/eduvod/video/deleteAlyVideo/{id}")
    public R deleteAlyVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduvod/video/deleteBatch")
    public R deleteBatch(@RequestParam List<String> videoIds);

}
